package com.liaogui.示例;

import java.util.WeakHashMap;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author liaogui
 * @date 2025/4/10 00:17
 */
public class ReentrantLockTest {
    public static void main(String[] args) {
        ReentrantLock 公平锁 = new ReentrantLock(true);

        ReentrantLock 非公平锁 = new ReentrantLock(false);

    }
}
